package com.demo.service;

import com.demo.model.Product;

import java.util.List;


public interface ProductService {

    int save(Product product);

    Product getProductById(Integer id);

    Integer updateProduct(Product product);

    Integer deleteProduct(int id);

    List<Product> getProducts(String name);
}
